home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 43
/
Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso
/
-serious-
/
comms
/
other
/
ascan
/
sources
/
noopentcp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1999-06-14
|
892b
|
32 lines
#include <proto/exec.h>
#include <proto/intuition.h>
/***************************************************************************/
/*Hummmmmm let's custom the "NO STACK..." requester :)*/
#define TITLE "ascan warning"
#define NOTCP_MSG "\
No TCP/IP stack is running.\n\
A bsdsocket.library compatible\n\
internet stack has to be started\n\
first."
#define GADGETS_TXT "Cancel"
/***************************************************************************/
void ___miami_noopentcp(void)
{
struct EasyStruct es = {sizeof(struct EasyStruct), 0, TITLE, NOTCP_MSG, GADGETS_TXT};
register struct IntuitionBase *IntuitionBase;
if (IntuitionBase = (struct IntuitionBase *)OpenLibrary("intuition.library",36)) {
EasyRequestArgs(NULL,&es,NULL,NULL);
CloseLibrary((struct Library *)IntuitionBase);
}
}
/***************************************************************************/